//
//  ZZLightViewTool.h
//  LightView
//
//  Created by evan on 2017/10/13.
//  Copyright © 2017年 evan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,LightLineDirectionModel) {

    LightLineDirectionLeft = 2000,
    LightLineDirectionRight = 2001,
    LightLineDirectionCenter
};

@interface ZZLightViewTool : NSObject

/**
 流星样式

 @param colors 颜色数组
 @param frame layer的frame值
 @param length 拖尾长度
 @param type 类型
 @return 返回一个图层
 */
+ (CALayer *)liuXinglightLayerForColors:(NSArray<UIColor *>*)colors layerFrame:(CGRect)frame tuoweiLength:(CGFloat )length LightType:(LightLineDirectionModel)type;


/**
 渐变样式

 @param colors 颜色数组
 @param frame frame
 @param type 类型 现在所有类型都是一样的
 @return Calyer
 */
+ (CALayer *)jianBianlightLayerForColors:(NSArray<UIColor *>*)colors layerFrame:(CGRect)frame LightType:(LightLineDirectionModel)type;

/**
 覆盖样式

 @param colors 颜色数组
 @param frame frame
 @param type 类型 现在所有类型都是一样的
 @return Calyer
 */
+ (CALayer *)fugailightLayerForColors:(NSArray<UIColor *>*)colors layerFrame:(CGRect)frame LightType:(LightLineDirectionModel)type;

/**
 间隔
 
 @param colors <#colors description#>
 @param frame <#frame description#>
 @param type <#type description#>
 @return <#return value description#>
 */
+ (CALayer *)JianGeLayerForColors:(NSArray<UIColor *>*)colors layerFrame:(CGRect)frame LightType:(LightLineDirectionModel)type;

@end
